package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthResourceDataService;
import com.orange.modules.dao.AuthResourceDataRepository;
import com.orange.modules.entity.school_data.AuthResourceData;

@Service
public class AuthResourceDataServiceImpl implements AuthResourceDataService{

	
	@Autowired
	private AuthResourceDataRepository authResourceDataRepository;
	
	@Override
	public void insertAuthResourceData(AuthResourceData atd) throws SQLException {
		// TODO Auto-generated method stub
		authResourceDataRepository.insertAuthResourceData(atd);
		
	}

	@Override
	public AuthResourceData queryAuthResourceDataBySchoolId(String schoolId,
			String loginType) throws SQLException {
		// TODO Auto-generated method stub
		AuthResourceData ard = authResourceDataRepository.queryAuthResourceDataBySchoolId(schoolId, loginType);
		return ard;
	}

}
